package com.ycsj.goldmedalnewconcept.master.adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.makeramen.roundedimageview.RoundedImageView;
import com.ycsj.goldmedalnewconcept.R;
import com.ycsj.goldmedalnewconcept.master.bean.StDetailsInfo;

import java.util.List;

/**
 * 新生 流失的列表适配器
 * Created by Administrator on 2019/4/2 0002.
 */

public class RvDataAdapter extends BaseQuickAdapter<StDetailsInfo, BaseViewHolder> {

    private Context context;

    public RvDataAdapter(Context context, int layoutResId, @Nullable List<StDetailsInfo> data) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, StDetailsInfo item) {
        //头像
        RoundedImageView lvHead = helper.getView(R.id.lv_head);

        //姓名
        TextView tvName = helper.getView(R.id.tv_name);

        //电话
        TextView tvTel = helper.getView(R.id.tv_tel);

        //时间
        TextView tvTime = helper.getView(R.id.tv_time);

    }
}
